package com.xiaochong.tir.common.data.hbasepo;


import java.util.Date;

/**
 * 从CoinMarketCap 获取货币信息以及价格指数
 * Created by wujiaxing on 2018/4/28.
 */
public class DailyComprehensiveAnalysisInfo {

    /**
     * 货币id
     */
    private String id;
    /**
     * 货币对CNY 价格
     */
    private String priceCny;

    /**
     * 货币对USD 价格
     */
    private String priceUsd;

    /**
     * 市值 CNY
     */
    private String marketCapCny;
    /**
     * 1小时涨跌幅
     */
    private String percentChange1h;
    /**
     * 24小时涨跌幅 USD
     */
    private String percentChange24h;
    /**
     * 7天涨跌幅 USD
     */
    private String percentChange7d;
    /**
     * 24小时交易额 CNY
     */
    private String volume24hCny;
    /**
     * 24小时流通额 CNY
     */
    private String circulation24hCny;
    /**
     * 创建时间
     */
    private Date createTime;

    private String rank;

    public String getPriceUsd() {
        return priceUsd;
    }

    public void setPriceUsd(String priceUsd) {
        this.priceUsd = priceUsd;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPriceCny() {
        return priceCny;
    }

    public void setPriceCny(String priceCny) {
        this.priceCny = priceCny;
    }

    public String getMarketCapCny() {
        return marketCapCny;
    }

    public void setMarketCapCny(String marketCapCny) {
        this.marketCapCny = marketCapCny;
    }

    public String getPercentChange1h() {
        return percentChange1h;
    }

    public void setPercentChange1h(String percentChange1h) {
        this.percentChange1h = percentChange1h;
    }

    public String getPercentChange24h() {
        return percentChange24h;
    }

    public void setPercentChange24h(String percentChange24h) {
        this.percentChange24h = percentChange24h;
    }

    public String getPercentChange7d() {
        return percentChange7d;
    }

    public void setPercentChange7d(String percentChange7d) {
        this.percentChange7d = percentChange7d;
    }

    public String getVolume24hCny() {
        return volume24hCny;
    }

    public void setVolume24hCny(String volume24hCny) {
        this.volume24hCny = volume24hCny;
    }

    public String getCirculation24hCny() {
        return circulation24hCny;
    }

    public void setCirculation24hCny(String circulation24hCny) {
        this.circulation24hCny = circulation24hCny;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":\"")
                .append(id).append('\"');
        sb.append(",\"priceCny\":\"")
                .append(priceCny).append('\"');
        sb.append(",\"marketCapCny\":\"")
                .append(marketCapCny).append('\"');
        sb.append(",\"percentChange1h\":\"")
                .append(percentChange1h).append('\"');
        sb.append(",\"percentChange24h\":\"")
                .append(percentChange24h).append('\"');
        sb.append(",\"percentChange7d\":\"")
                .append(percentChange7d).append('\"');
        sb.append(",\"volume24hCny\":\"")
                .append(volume24hCny).append('\"');
        sb.append(",\"circulation24hCny\":\"")
                .append(circulation24hCny).append('\"');
        sb.append(",\"createTime\":\"")
                .append(createTime).append('\"');
        sb.append(",\"rank\":\"")
                .append(rank).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
